<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri= "http://java.sun.com/jsp/jstl/core" prefix= "c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增产品类型</title>

<link href="${pageContext.request.contextPath }/admin/login/css/mainstyle.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/admin/login/css/common.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="${pageContext.request.contextPath }/admin/login/js/common.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/login/js/producttype_form.js"></script>

</head>
<body>
  <div class="rrcc" id="RightBox">
    <div class="right" id="li010">
      <div class="right01"><img src="${pageContext.request.contextPath }/admin/login/images/main/04.gif" /> 产品类型管理 &gt; <span>新增产品类型</span></div>
      
      <div class="primary">
        <table>
          <tr>
            <th>编辑产品类型</th>
            <th></th>
          </tr>
        </table>
        <br/>
        
        <form action="${pageContext.request.contextPath }/admin/producttype/productTypeEdit.do?m=edit" 
          method="post" name="producttypeCfgForm" id="producttypeCfgForm">
        <input type="hidden" name="id" id="id" value="${producttypeDetail.id }" />
        <table>
          <tr>
            <td width="80px" align="right">产品类型名:</td>
            <td>
              <input type="text" name="typeName" id="typeName" value="${producttypeDetail.typeName }"
                onfocus="typeNameFocus('typeNameCol', 'typeNameDesc')"
                onblur="typeNameBlur(this, 'typeNameCol', 'typeNameDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="typeNameCol">
              <span id="typeNameDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">菜单URL:</td>
            <td>
              <textarea name="url" id="url" rows="5" cols="40"
                onfocus="urlFocus('urlCol', 'urlDesc')"
                onblur="urlBlur(this, 'urlCol', 'urlDesc')" 
              >${producttypeDetail.url }</textarea>
            </td>
            <td><font color="red">*</font></td>
            <td id="urlCol">
              <span id="urlDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr>
            <td width="80px" align="right">产品类型标识:</td>
            <td>
              <input type="text" name="typeFlag" id="typeFlag" 
                value="${producttypeDetail.typeFlag }"
                onfocus="typeFlagFocus('typeFlagCol', 'typeFlagDesc')"
                onblur="typeFlagBlur(this, 'typeFlagCol', 'typeFlagDesc')" />
            </td>
            <td><font color="red">*</font></td>
            <td id="typeFlagCol">
              <span id="typeFlagDesc" style="display: none"></span>
            </td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">菜单状态:</td>
            <td>
              <select name="status">
                <option value="1" <c:if test="${producttypeDetail.status eq 1 }">selected</c:if> >可用</option>
                <option value="0" <c:if test="${producttypeDetail.status eq 0 }">selected</c:if>>不可用</option>
              </select>
            </td>
            <td><font color="red">*</font></td>
            <td></td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">记录添加日期:</td>
            <td>${producttypeDetail.createTime }</td>
            <td></td>
            <td></td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">记录添加人:</td>
            <td>${producttypeDetail.createUser }</td>
            <td></td>
            <td></td>
          </tr>
          
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">最近更新日期:</td>
            <td>${producttypeDetail.lastModifyTime }</td>
            <td></td>
            <td></td>
          </tr>
          
          <tr height="15px"><td></td><td></td><td></td></tr>
          <tr>
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td>
              <input type="button" value="保存" onclick="addProductTypeFun()" />
            </td>
            <td></td>
          </tr>
        </table>
        </form>
      </div>
      
    </div>
  </div>
</body>
</html>